﻿using System;
using System.Runtime.Serialization;

namespace ShellCommandService.Contracts.DataContracts
{
    [DataContract]
    public class ShellCommandResult
    {
        [DataMember]
        public string MachineName { get; set; }

        [DataMember]
        public string Result { get; set; }

        [DataMember]
        public ResultType Type { get; set; }

        [DataMember]
        public DateTime ExecutionTime { get; set; }

        [DataMember]
        public string Command { get; set; }
    }

    public enum ResultType
    {
        Exception,
        Success
    }
}